<template>
  <div class="foo">
    <h3>这是一个孙子级的组件FOO</h3>
    <p>接收祖先级组件传递过来的数据:{{ bbb }}</p>
  </div>
</template>

<script>
import { inject } from "vue"
export default {
  name: "FooA",
  setup() {
    let bbb = inject("aaa")
    return {
      bbb,
    }
  },
}
</script>

<style>
.foo {
  width: 500px;
  height: 120px;
  background-color: orangered;
}
</style>
